home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 009a / ppt100.zip / LIST.H < prev    next >
C/C++ Source or Header  |  1993-05-01  |  3KB  |  99 lines

  1. /*
  2.  *  File Browse Utility, version 1.4
  3.  *
  4.  *  (c) 1992 Barry Nance
  5.  *
  6.  *  distributed through
  7.  *  BYTE Magazine's Software Corner
  8. */
  9.  
  10. // Original program by Mr. Nance was all incorporated in one file: LIST.C.
  11. // I split it up in order to demonstrate some PPT functionality.
  12. // No substantive changes.   This is the header file LIST.H.
  13. // There are also 2 source modules, LIST1.C and LIST2.c.
  14. // Gary L. Levine, Feb/1993.
  15.  
  16. #define     HELP_LINES    17
  17. #define     CSIZE        256             /* character set size */
  18.  
  19. #define     BUFSIZE     4096
  20. #define     BUFSIZEL    4096l
  21.  
  22. #define     STR_SIZE    1000
  23.  
  24. #define     TRUE           1
  25. #define     FALSE          0
  26.  
  27. #define     BELL           7
  28. #define     BS             8
  29. #define     TAB            9
  30. #define     LINEFEED      10
  31. #define     FORMFEED      12
  32. #define     CR            13
  33. #define     BACKTAB       15
  34. #define     ESC           27
  35. #define     SPACE         32
  36.  
  37. #define     HOMEKEY       71
  38. #define     ENDKEY        79
  39. #define     UPKEY         72
  40. #define     DOWNKEY       80
  41. #define     PGUPKEY       73
  42. #define     PGDNKEY       81
  43. #define     LEFTKEY       75
  44. #define     INSKEY        82
  45. #define     RIGHTKEY      77
  46. #define     DELKEY        83
  47. #define     CTRLLEFTKEY  115
  48. #define     CTRLRIGHTKEY 116
  49. #define     F1            59
  50. #define     F2            60
  51. #define     F3            61
  52. #define     F4            62
  53. #define     F5            63
  54. #define     F6            64
  55. #define     F7            65
  56. #define     F8            66
  57. #define     F9            67
  58. #define     F10           68
  59.  
  60. struct      csavetype
  61.             {
  62.             unsigned int curloc;
  63.             unsigned int curmode;
  64.             };
  65.  
  66. /************************************/
  67.  
  68. int     kbdstring(char buff[], int max_chars);
  69. void    getkey(void);
  70.  
  71. int     fgetrecord(unsigned char buff[], int max_chars);
  72. int     fgetline(unsigned char buff[], int max_chars);
  73. int     fgetbyte(void);
  74.  
  75. int     fprevrecord(void);
  76. int     fprevline(void);
  77. int     fprevbyte(void);
  78.  
  79. void    drawbox(void);
  80. void    gohome(void);
  81. void    find_text(void);
  82. void    showfile(void);
  83. void    fill_window(void);
  84. void    show_line_num(void);
  85. void    display_line(void);
  86. void    display_hex(void);
  87. void    adjust_line_number(int amount);
  88.  
  89. int     get_video_mode(void);
  90. void    save_cursor(struct csavetype *csave);
  91. void    restore_cursor(struct csavetype *csave);
  92. void    scroll_up(unsigned char numlines);
  93. void    scroll_dn(unsigned char numlines);
  94.  
  95. int     search(unsigned char *pat, int plen, unsigned char *str, int slen);
  96. void    search_setup(unsigned char *pat, int plen, int icase);
  97.  
  98. /************************************/
  99.